import request from '@/utils/request'

export function getAgentList(params) {
  return request({
    url: '/agent/getList',
    method: 'get',
    params
  })
}

export function createAgent(data){
  return request({
    url:'/agent/create',
    method: 'post',
    data
  })
}

export function rechargePort(data){
  return request({
    url:'/agent/rechargePort',
    method: 'post',
    data
  })
}

export function reducePort(data){
  return request({
    url:'/agent/reducePort',
    method: 'post',
    data
  })
}
